<?php
namespace app\admin\validate;

use think\Validate;

/**
 * 后台登录验证
 * Class Login
 * @package app\admin\validate
 */
class SlideSave extends Validate
{
    protected $rule
        = [
            ['name', 'require', 'banner名称必须'],
            ['type', 'require', '栏目必须'],
            ['sort', 'require|number|between:1,10', '排序必须,并且在1-10之间'],
            ['image', 'require|url', 'Banner封面必须'],
            ['mid', 'require', '内容必须'],
        ];
}